function textDate()    
{    
    var today = new Date();
    var day = today.getDate();    
    var month = today.getMonth() + 1; 
    month = month<10?"0"+month:month;
    day = day<10?"0"+day:day;
    var year = today.getYear();    
    var date = year + "-" + month + "-" + day;    
    return date;
}   
